﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WebApi.Core.IService.Base;
using WebApi.Core.Model.Entity;

namespace WebApi.Core.IService
{
    public interface IUserRoleService : IBaseServices<UserRoleEntity>
    {
        Task<List<UserRoleEntity>> GetUserRoleByUserId(int uId);

        /// <summary>
        /// 获取用户的角色名称(拼接字符串)
        /// </summary>
        /// <param name="uId"></param>
        /// <returns></returns>
        Task<string> GetUserRoleNameStr(int uId);
    }
}
